/**
 * ²ÜÖÐÒå
 */
define(["jquery", "template", "scprit/department/view/template/allPatients.js"], function ($, template, tpl) {
    var question = {};
    var inTable = function (data) {
        return template("table", data);
    }
    question.FollowUpTitInit = function (options) {
        $("body").append(tpl.init());
        var html = inTable(setData(options.data));
        $("#" + options.id).html(html);
    }

    var drawqueue = function (data) {
        return template("inQueue", data);
    }
    var queueData = function (list) {
        var res = [];
        for (var i = 0; i < list.length; i++) {
            res[i] = list[i];
        }
        return res;
    }
    question.FollowUpTitInit2 = function (options) {
        var data = {
            rows: queueData(options.data)
        }
        $("body").append(tpl.init2());
        var html = drawqueue(data);
        $("#" + options.id).append(html);
    }
    
    return question;
});